package com.yonyou.cyxdms.sysAuth.service.mapper;

import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.MenuActionPO;
import com.yonyou.cyxdms.sysAuth.service.vo.role.PermissionMenuVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单操作权限 Mapper 接口
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */
public interface MenuActionMapper extends SuperMapper<MenuActionPO> {

    List<PermissionMenuVO> selectPermissionMenuAction(@Param("orgType")Integer orgType, @Param("appId") String appId);

    //ACTION_CTL=10041001获取tc_menu_action表数据
    List<Map> getMenuAction();

    List<Map> findMenuAction(@Param("menuCuringId")Integer menuCuringId, @Param("params") Map<String, Object> params);

    List<Map> findMenuAction2(@Param("menuCuringId")Integer menuCuringId, @Param("params") Map<String, Object> params);

    List<Map<String, Object>> findListMenuAction(@Param("menuId") Long menuId, @Param("appId") String appId);

    List<Map<String,Object>> findListmapOne(@Param("menuId")Long menuId, @Param("permissionIDList")List<String> permissionIdList, @Param("menuCuringId")Integer menuCuringId);

    List<Map<String,Object>> findListmapTwo(@Param("menuId")Long menuId, @Param("permissionIDList")List<String> permissionIdList, @Param("menuCuringId")Integer menuCuringId);

    List<Map<String,Object>> findListmap3One(@Param("menuId")Long menuId, @Param("permissionIDList")List<String> permissionIdList, @Param("menuCuringId")Integer menuCuringId);

    List<Map<String,Object>> findListmap3Two(@Param("menuId")Long menuId, @Param("permissionIDList")List<String> permissionIdList, @Param("menuCuringId")Integer menuCuringId);

    List<Map<String, Object>> findRemoteUrl(@Param("menuId") Long menuId, @Param("appId") String appId);
}
